package com.cloudcross.ssp.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.cloudcross.ssp.base.service.BaseService;
import com.cloudcross.ssp.common.utils.Pager;
import com.cloudcross.ssp.model.Account;

public interface IAdvertiserDateService extends BaseService<Account> {

    //广告主统计数据查询
    Map<String, Object> findData(Map<String, Object> paramMap);

    // 根据广告主id和时间查询它的总的曝光数和点击数
    HashMap<String, Object> findTotalImpressionAndClickByAdvertiserId(Map<String, Object> paramMap);

    //根据代理商id查询该代理商下的所有广告主的曝光数和点击数的总和
    HashMap<String, Object> findTotalImpressionAndClickByAgentId(Map<String, Object> paramMap);

    //查询首页图表
    List<HashMap<String, Object>> findChart(String startDate, String endDate, Long advertiserId, Long agentId);

    //查询满足条件的数目
    int findCountForChart(String startDate, String endDate,
                          Long advertiserId, Long agentId);

    //查询首页列表
    List<HashMap<String, Object>> findChartPage(String startDate,
                                                String endDate, Long advertiserId, Long agentId, Pager pager);

    //请求数据
    void updateDcDataToday(Map<String, Object> paramMap);

    //		void loadDcDataPast(Map<String, Object> paramMap);
//		void requestCcData(Map<String, Object> paramMap, String url);
    void requestCcData(String url);

    String findAdvsByAgentId(Long agentId);

    Map findCompare(Map<String, Object> paramMap);

}
